package org.testfire.realm.view.tags.util;

import javax.servlet.jsp.tagext.SimpleTagSupport;
import javax.servlet.jsp.JspException;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Granum
 * Date: Dec 17, 2006
 * Time: 2:39:02 PM
 */
public class NewLine extends SimpleTagSupport {

	Integer count = 1;

	public NewLine() {
	}


	public void doTag() throws JspException, IOException {
		int i = count;
		do{
			getJspContext().getOut().newLine();
		} while (--i != 0);
		super.doTag();
	}


	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
}
